package easycloud.ecs.provider.amazon.model;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.amazonaws.services.s3.model.S3ObjectSummary;

import easycloud.ecs.api.model.IStorageObjectSummary;

public class AmazonStorageObjectSummary implements IStorageObjectSummary {

	private S3ObjectSummary objectSummary;

	public AmazonStorageObjectSummary(S3ObjectSummary objectSummary) {
		this.objectSummary = objectSummary;
	}

	@Override
	public String getETag() {
		return objectSummary.getETag();
	}

	@Override
	public String getKey() {
		return objectSummary.getKey();
	}

	@Override
	public Date getLastModified() {
		return objectSummary.getLastModified();
	}

	@Override
	public long getSize() {
		return objectSummary.getSize();
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
